OrderedDictionary Constructor (IComparer)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new OrderedDictionary. The Compare method of the passed comparison object will be used to compare keys in this dictionary.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public OrderedDictionary(
	IComparer<TKey> comparer
)
Visual Basic (Declaration)
Public Sub New ( _
	comparer As IComparer(Of TKey) _
)
Visual C++
public:
OrderedDictionary (
	IComparer<TKey>^ comparer
)

Parameters

comparer
IComparer<(Of <TKey>)>
An instance of IComparer<TKey> that will be used to compare keys.

Remarks

The GetHashCode and Equals methods of the provided IComparer<TKey> will never be called, and need not be implemented.

See Also